package com.tsd.system.service;

import com.tsd.core.vo.PageBean;
import com.tsd.system.entity.SysUser;
import com.tsd.system.entity.SysUserGroup;

import java.util.List;
import java.util.Map;


/**
 * 描述：SysUserGroup服务实现层接口
 *
 * @author Hillpool
 * @date 2019/03/12 12:20:51
 */
public interface SysUserGroupService {

    /**
     * 描述：根据id获取SysUserGroup
     *
     * @param id
     */
    SysUserGroup getSysUserGroupById(Long id) throws Exception;

    /**
     * 描述：保存或更新SysUserGroup
     *
     * @param record
     * @param sysUser
     */
    void saveSysUserGroup(SysUserGroup record, SysUser sysUser) throws Exception;

    /**
     * 描述：根据id删除SysUserGroup
     *
     * @param id
     * @param sysUser
     */
    void deleteSysUserGroup(Long id, SysUser sysUser) throws Exception;

    /**
     * 描述：根据params分页查询SysUserGroup
     *
     * @param params
     * @param page
     */
    List<SysUserGroup> findSysUserGroups(Map<String, Object> params, PageBean page) throws Exception;

}
